﻿using System.Windows.Forms;
using System.Windows.Markup;
using System.Reflection;

namespace RSkor.Common.WinForms
{
    [MarkupExtensionReturnType(typeof(Control))]
    public class ContentPlaceHolderExtension : MarkupExtension
    {
        private bool _pendingUriPath = false;
        private string _uriPath = null;
        public string UriPath { get; set; }

        public override object ProvideValue(System.IServiceProvider serviceProvider)
        {
            IProvideValueTarget service = serviceProvider.GetService(typeof(IProvideValueTarget)) as IProvideValueTarget;
            if (service != null)
            {
                PropertyInfo pi = service.TargetProperty as PropertyInfo;
                if (pi != null && service.TargetObject is Control)
                {

                }
            }

            return null;
        }
    }
}
